home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / compress / zoo21bin.zoo / readme.wm < prev    next >
Text File  |  1991-07-23  |  2KB  |  34 lines

  1.  
  2. This is a revised version of the shell-style pattern matcher posted to
  3. comp.sources.misc in March.  Lars and I replaced the two mutually-
  4. recursive routines with in-line code for the star case.  The source also
  5. now has detailed comments on how the trickier part works.
  6.  
  7. Basically, this routine compares text against a specified pattern
  8. and returns 0 if the text doesn't match the pattern, or non-zero if it
  9. does.  The patterns can have the following elements:
  10.         *               Any set of characters
  11.         ?               Any single character
  12.         [...]           Any character in the range ...
  13.         [^...]          Any character not in the range ...
  14.         \* \? \[        A * ? or [ character
  15.         x               The character x
  16.  
  17. For more details, see the manual page.  There is no Makefile; install
  18. according local custom.  It runs on pretty much any machine with a C
  19. compiler.
  20.  
  21. From the original README:
  22.     This small routine is an efficient pattern-matcher for shell-style
  23.     wildcards.  I wrote and posted it five year ago.  Since then other
  24.     people have picked it up (notably Gilmore's TAR).  Others have posted
  25.     fixes, which usually introduced bugs (Lars is the notable exception).
  26.     It's probably about time that this got archived somewhere ...  I'm not
  27.     interested in any other languages, nor particularly in seeing new
  28.     features other than performance gains.
  29.  
  30. I hope you find this useful.  I hope you don't pretend that you wrote it.
  31.         /rich $alz
  32.         <rsalz@bbn.com>
  33.         April, 1991
  34.